<?php

namespace App\Http\Controllers\Home;

use App\Models\Doctor;

class SearchController extends BaseController
{

    public function __construct(Doctor $doctor)
    {
        parent::__construct();
        $this->doctor = $doctor;
    }

    /**
     * 搜索医师
     */
    public function getIndex(){
         $res = $this->doctor->search(request());
         return ajax_return($res);
    }
}
